package com.winway.WinCRM.application.dto;

import java.util.Date;
import java.io.Serializable;

import org.springframework.format.annotation.DateTimeFormat;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.openkoala.koala.springmvc.JsonTimestampSerializer;
import org.openkoala.koala.springmvc.JsonDateSerializer;


public class Cust_DepartmentDTO implements Serializable {

	private Long id;

		
	private String Department_Web;
	
		
	private String Department_Address;
	
		
	private String Adder;
	
		
	private String Department_ID;
	
		
	private String Department_Name;
	
		
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date AddTime;
	
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date AddTimeEnd;
			
		

	public void setDepartment_Web(String Department_Web) { 
		this.Department_Web = Department_Web;
	}

	public String getDepartment_Web() {
		return this.Department_Web;
	}
	
			
		

	public void setDepartment_Address(String Department_Address) { 
		this.Department_Address = Department_Address;
	}

	public String getDepartment_Address() {
		return this.Department_Address;
	}
	
			
		

	public void setAdder(String Adder) { 
		this.Adder = Adder;
	}

	public String getAdder() {
		return this.Adder;
	}
	
			
		

	public void setDepartment_ID(String Department_ID) { 
		this.Department_ID = Department_ID;
	}

	public String getDepartment_ID() {
		return this.Department_ID;
	}
	
			
		

	public void setDepartment_Name(String Department_Name) { 
		this.Department_Name = Department_Name;
	}

	public String getDepartment_Name() {
		return this.Department_Name;
	}
	
			
		

	public void setAddTime(Date AddTime) { 
		this.AddTime = AddTime;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getAddTime() {
		return this.AddTime;
	}
	
	public void setAddTimeEnd(Date AddTimeEnd) { 
		this.AddTimeEnd = AddTimeEnd;
	}

	@JsonSerialize(using = JsonDateSerializer.class)
	public Date getAddTimeEnd() {
		return this.AddTimeEnd;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return id;
	}

    @Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Cust_DepartmentDTO other = (Cust_DepartmentDTO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
}